#include "configuration.hpp"

namespace nmc
{
	Configuration::Configuration()
		: mUpKey(gcn::Key::UP),
		mRightKey(gcn::Key::RIGHT),
		mDownKey(gcn::Key::DOWN),
		mLeftKey(gcn::Key::LEFT),
		mActionKey('c'),
		mJumpKey('x')
	{

	}

	const gcn::Key& Configuration::getUpKey() const
	{
		return mUpKey;
	}

	void Configuration::setUpKey(const gcn::Key& key)
	{
		mUpKey = key;
	}

	const gcn::Key& Configuration::getRightKey() const
	{
		return mRightKey;
	}

	void Configuration::setRightKey(const gcn::Key& key)
	{
		mRightKey = key;
	}

	const gcn::Key& Configuration::getDownKey() const
	{
		return mDownKey;
	}

	void Configuration::setDownKey(const gcn::Key& key)
	{
		mDownKey = key;
	}

	const gcn::Key& Configuration::getLeftKey() const
	{
		return mLeftKey;
	}

	void Configuration::setLeftKey(const gcn::Key& key)
	{
		mLeftKey = key;
	}

	const gcn::Key& Configuration::getActionKey() const
	{
		return mActionKey;
	}

	void Configuration::setActionKey(const gcn::Key& key)
	{
		mActionKey = key;
	}

	const gcn::Key& Configuration::getJumpKey() const
	{
		return mJumpKey;
	}

	void Configuration::setJumpKey(const gcn::Key& key)
	{
		mJumpKey = key;
	}
}